//
//  UIImagePickerController+YWK.h
//  YWKUser
//
//  Created by  WangDan on 16/5/5.
//  Copyright © 2016年 iCareTech. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIImagePickerController (YWK)

/**
*  是否相册可用
*
*  @return BOOl
*/
- (BOOL) isAvailablePhotoLibrary;

/**
 *  是否相机可用
 *
 *  @return BOOL
 */
- (BOOL) isAvailableCamera;

/**
 *  是否可以保存相册可用
 *
 *  @return BOOL
 */
- (BOOL) isAvailableSavedPhotosAlbum;

/**
 *  是否后置摄像头可用
 *
 *  @return BOOL
 */
- (BOOL) isAvailableCameraDeviceRear;

/**
 *  是否前置摄像头可用
 *
 *  @return BOOL
 */
- (BOOL) isAvailableCameraDeviceFront;

/**
 *  是否支持拍照权限
 *
 *  @return BOOL
 */
- (BOOL) isSupportTakingPhotos;

/**
 *  是否支持获取相册视频权限
 *
 *  @return BOOL
 */
- (BOOL)isSupportPickVideosFromPhotoLibrary;

/**
 *  是否支持获取相册图片权限
 *
 *  @return BOOL
 */
- (BOOL) isSupportPickPhotosFromPhotoLibrary;

+ (UIImagePickerController *)imagePickerControllerWithSourceType:(UIImagePickerControllerSourceType)sourceType;


@end
